package com.backend.qiniu_manager;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "qiniu")
@PropertySource(value = {"classpath:qiniu.properties"},
        encoding = "UTF-8", name = "qiniu.properties")
@Data
public class ConfigProperties {
    private String accessKey;
    private String secretKey;
    private String bucket;
    private String zone;
    private String domainOfBucket;
    private String expireInSeconds;
}
